﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: InvoiceLogEntity.cs
// 修改时间：2020-9-8 10:40:04
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：InvoiceLog 的实体类.
	/// </summary>
	[Table("InvoiceLog")]
	public partial class InvoiceLogEntity
	{
		#region Properties
		private int? _invoiceID = 0;
		/// <summary>
		/// 发票记录ID(主键)(自增长)
		/// </summary>
		[Column("InvoiceID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? InvoiceID
		{
			get {return _invoiceID;}
			set {_invoiceID = value;}
		}
		
		private int? _clientID = 0;
		/// <summary>
		/// 客户ID
		/// </summary>
		[Column("ClientID",TypeName="int")]
		public int? ClientID
		{
			get {return _clientID;}
			set {_clientID = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 会员用户名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private int? _orderID = 0;
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column("OrderID",TypeName="int")]
		public int? OrderID
		{
			get {return _orderID;}
			set {_orderID = value;}
		}
		
		private int? _invoiceType = 0;
		/// <summary>
		/// 发票类型
		/// </summary>
		[Column("InvoiceType",TypeName="int")]
		public int? InvoiceType
		{
			get {return _invoiceType;}
			set {_invoiceType = value;}
		}
		
		private System.String _invoiceNum = string.Empty;
		/// <summary>
		/// 发票号码
		/// </summary>
		[Column("InvoiceNum",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String InvoiceNum
		{
			get {return _invoiceNum;}
			set {_invoiceNum = value;}
		}
		
		private System.String _invoiceTitle = string.Empty;
		/// <summary>
		/// 发票抬头
		/// </summary>
		[Column("InvoiceTitle",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String InvoiceTitle
		{
			get {return _invoiceTitle;}
			set {_invoiceTitle = value;}
		}
		
		private System.String _invoiceContent = string.Empty;
		/// <summary>
		/// 发票内容
		/// </summary>
		[Column("InvoiceContent",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String InvoiceContent
		{
			get {return _invoiceContent;}
			set {_invoiceContent = value;}
		}
		
		private DateTime? _invoiceDate = null;
		/// <summary>
		/// 发票日期
		/// </summary>
		[Column("InvoiceDate",TypeName="datetime")]
		public DateTime? InvoiceDate
		{
			get {return _invoiceDate;}
			set {_invoiceDate = value;}
		}
		
		private decimal? _totalMoney = 0;
		/// <summary>
		/// 发票金额
		/// </summary>
		[Column("TotalMoney",TypeName="money")]
		public decimal? TotalMoney
		{
			get {return _totalMoney;}
			set {_totalMoney = value;}
		}
		
		private System.String _drawer = string.Empty;
		/// <summary>
		/// 开票人
		/// </summary>
		[Column("Drawer",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Drawer
		{
			get {return _drawer;}
			set {_drawer = value;}
		}
		
		private System.String _inputer = string.Empty;
		/// <summary>
		/// 录入者
		/// </summary>
		[Column("Inputer",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Inputer
		{
			get {return _inputer;}
			set {_inputer = value;}
		}
		
		private DateTime? _inputTime = null;
		/// <summary>
		/// 录入时间
		/// </summary>
		[Column("InputTime",TypeName="datetime")]
		public DateTime? InputTime
		{
			get {return _inputTime;}
			set {_inputTime = value;}
		}
		
		private System.String _memo = string.Empty;
		/// <summary>
		/// 内部记录
		/// </summary>
		[Column("Memo",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Memo
		{
			get {return _memo;}
			set {_memo = value;}
		}
		
		#endregion
	}
}
